import http from '@/utils/httpUtils'


/**
 * @获取登录用户信息
 */
export function getLoginUserInfo(){
    return http('/system/user/loginUserInfo','get');
}


/**
 * @查询用户分页
 */
export function getUserPage(query){
    return http('/system/user/userPage','get',query);
}

/**
 * @用户新增
 */
export function userAddApi(query){
    return http('/system/user/userAdd','post',query);
}

/**
 * @用户修改
 */
export function userUpdateApi(query){
    return http('/system/user/userUpdate','post',query);
}

/**
 * @用户详情查询
 */
export function userDetailsApi(userId){
    return http(`/system/user/userDetails/${userId}`,'get')
}

/**
 * @用户删除
 */
export function userDeleteApi(userIds){
    return http(`/system/user/deleteUsers/${userIds}`,'delete')
}

/**
 * @更新用户基础资料
 */
export function updateUserBaseInfo(query){
    return http('/system/user/baseInfoUpdate','post',query)
}